#include<iostream>
using namespace std;
int main() {
	int i = 1, n,j,k;
	cin >> n;
	while (i <= n) {
		if (i % 2 == 1) {
			for (j = 1; j <= n; j++) {
				cout << "* ";
			}
	   }
		if (i % 2 == 0) {
			for (k=1; k <= n; k++) {
				cout << " *";
			}
		}
		cout << endl;
		i++;
	}

	return 0;
}
